package com.joey.cloud.provider.elasticsearch;

import com.joey.cloud.communal.constant.ServiceConstant;
import com.joey.cloud.communal.utils.ResponseUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 缓存服务 feign
 * @author joey
 */
@FeignClient(name = ServiceConstant.KEY_ES,fallback = EsFallbackFeign.class)
public interface EsFeignService {

    @RequestMapping(value = "/logTrace/str",method = RequestMethod.POST)
    ResponseUtil esLogTraceInsert(@RequestParam("jsonStr") String jsonStr);
}
